package com.alipay.entity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by Yancy on 2019/11/9.
 */
public class Order {
    private Integer orderId;
    private Integer userId;
    private String commodity;//商品
    private BigDecimal amount;//金额
    private Long orderNo;//订单号
    private Integer states;//订单状态
    private Date paymentTime;
    private Date endTime;
    private Date closeTime;

    public Order() {
        super();
    }

    public Order(Integer orderId, Integer userId, String commodity, BigDecimal amount, Long orderNo, Integer states, Date paymentTime, Date endTime, Date closeTime) {
        this.orderId = orderId;
        this.userId = userId;
        this.commodity = commodity;
        this.amount = amount;
        this.orderNo = orderNo;
        this.states = states;
        this.paymentTime = paymentTime;
        this.endTime = endTime;
        this.closeTime = closeTime;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderId=" + orderId +
                ", userId=" + userId +
                ", commodity='" + commodity + '\'' +
                ", amount=" + amount +
                ", orderNo=" + orderNo +
                ", states=" + states +
                ", paymentTime=" + paymentTime +
                ", endTime=" + endTime +
                ", closeTime=" + closeTime +
                '}';
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getCommodity() {
        return commodity;
    }

    public void setCommodity(String commodity) {
        this.commodity = commodity;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Long getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(Long orderNo) {
        this.orderNo = orderNo;
    }

    public Integer getStates() {
        return states;
    }

    public void setStates(Integer states) {
        this.states = states;
    }

    public Date getPaymentTime() {
        return paymentTime;
    }

    public void setPaymentTime(Date paymentTime) {
        this.paymentTime = paymentTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getCloseTime() {
        return closeTime;
    }

    public void setCloseTime(Date closeTime) {
        this.closeTime = closeTime;
    }
}
